<div class="modal-header">
    <span>{{ modalHeader }}</span>
    <button class="close" aria-label="Close" (click)="closeModal()">
        <span aria-hidden="true">&times;</span>
    </button>
</div>
<div class="modal-body">
    <form>
        <nb-card>
            <nb-card-body>
                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="userId">考生</label>
                            <select class="form-control" [(ngModel)]="achievement.userId" name="userId">
                                <option *ngFor="let option of userList" [value]="option.id">{{option.userName}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="paperId">试卷</label>
                            <select class="form-control" [(ngModel)]="achievement.paperId" name="paperId">
                                <option *ngFor="let option of paperList" [value]="option.id">{{option.title}}</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="courseId">课程</label>
                            <select class="form-control" [(ngModel)]="achievement.courseId" name="courseId">
                                <option *ngFor="let option of courseList" [value]="option.id">{{option.title}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="qbankId">题库</label>
                            <select class="form-control" [(ngModel)]="achievement.qbankId" name="qbankId">
                                <option *ngFor="let option of qbankList" [value]="option.id">{{option.title}}</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label for="score">得分</label>
                            <input type="text" class="form-control" id="score" name="score" placeholder="得分" [(ngModel)]="achievement.score">
                        </div>
                    </div>
                    <div class="col-sm-6" *ngIf="isEdit">
                        <div class="form-group">
                            <label for="status">状态</label>
                            <select class="form-control" [(ngModel)]="achievement.status" name="status">
                                <option *ngFor="let option of statusType" [value]="option.name">{{option.val}}</option>
                            </select>
                        </div>
                    </div>
                </div>
            </nb-card-body>
        </nb-card>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-md" (click)="closeModal()">取消</button>
    <button class="btn btn-md btn-primary" (click)="saveData()">保存</button>
</div>